package com.tomshushu.doc.freedoc.modular.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tomshushu.doc.freedoc.modular.project.entity.ProjectEntity;
import com.tomshushu.doc.freedoc.modular.project.model.result.ProjectListResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-11 12:17
 * @version: 1.0
 */
public interface ProjectMapper extends BaseMapper<ProjectEntity> {
    /**
     * 根据用户id获取项目列表
     *
     * @param userId 用户id
     * @return 项目列表
     */
    List<ProjectListResult> getProjectListByUserIdOrTeamId(@Param("userId") String userId,
                                                   @Param("teamId") String teamId);

}